home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
rsxwdk2s.zip
/
RSXWDK
/
LIBSRC
/
DOS
/
DOS5701.C
< prev
next >
Wrap
C/C++ Source or Header
|
1994-12-17
|
446b
|
28 lines
#include <errno.h>
#include <sys/doscalls.h>
/*
** AX = 0x5701
** BX = handle
** CX:DX = time/date
*/
int dos_setftime(int handle, unsigned short date, unsigned short time)
{
struct REGPACK r;
r.eax = 0x5701;
r.ebx = handle;
r.ecx = time;
r.edx = date;
_intr(0x21, &r);
if (r.eflags & 1) {
_sys_doserror2errno( r.eax & 0xFFFF);
return (-1);
}
else
return (r.eax & 0xFFFF);
}